Scatter Plots/ Graphs /Data:
Rich People Correlation- Christians:[1] 0.3101296 Atheists: [1] 0.09013107 Muslims: [1] 0.2158 Muslims vs. Level of Education
Christians vs. Level of Education
Atheists vs. Level of Education
Muslims vs. Rich People
Christains vs. Rich People
Atheists vs. Rich People
Summary:
In the data that I have compiled together, I have come across several correlations and relationships that help the investigation in my group of the question "how does religion effect lifestyles/happiness?" I have not found anything core to prove that these people are "happy" however the data I found shows the kind of lifestyle that these people have, leading us to believe that they are happy. However, this data is also in assumption that it was collected from a diverse area, in which none of these religions could be pin-pointed before hand. When running through some scripts I found several correlations between religious views and the amount of money people have. The strongest correlation with mass amounts of money ended up being that of the christian faith with a .31. The next strongest correlation with mass amounts of money was that of the muslim faith with a .21. The weakest of the correlation between mass amounts of money and faith was that of the atheists.. or no faith at all with a .09. Thus proving that people who had a faith compared to people who didn't have a lot more money. This shows a lot about how people's lifestyles differ from believing or not believing in a religion, if we assume that money brings true happiness ( which I personally don't) we can tell that factor as well. The last three scatterplots show all this info in a visual correlation as well as numeric. In the first three graphs above are visuals displaying the types of faith, and how many people belonging to that faith have what level of education. Along with the levels of correlation to money, the same order follows for education Christians having the most, Muslims next, followed by atheists.One can say from this data that having religion is a key part in being "successful" however, this is only a small amount of data and much more research we can come across in order to see who is truly happy and or living a successful lifestyle.
Max, you did a fine job here but you could have been more thorough in analyzing the descriptive statistics, you could have discussed variability and the standard deviations, etc. So this is fine but you did ignore a few little pieces of the exam assignment. Also, I don't mind the summary at the end, but in the future you probably want to narrate the data with separate paragraphs for each analysis/graph. Otherwise, good stuff here.
Maxwell Cohen
TU Quant Mid-Term
9/30/12
Class:nes<-read.csv("anes2008.csv")
install.packages("car")
library(car)
scatterplot(nes$atheists, nes$richppl)
cor(nes$christians, nes$richppl, use="complete.obs")
cor(nes$atheists, nes$richppl, use="complete.obs")
scatterplot(nes$christians, nes$richppl)
cor(nes$muslims, nes$richppl, use="complete.obs")
scatterplot(nes$muslims, nes$richppl)
scatterplot(nes$atheists, nes$education)
scatterplot(nes$christians, nes$education)
scatterplot(nes$muslims, nes$education)
boxplot(nes$christians)
boxplot(nes$muslims)
boxplot(nes$atheists)
x<-sample(c("H","T"), 10, replace=T)
x2 <- seq(0, 4, 0.1)
plot(x2, dnorm(x2, 2, .5), type="l")
u <- runif(20)
dummy <- runif (n)
n <- 1000
throws <- ceiling(6*dummy)
m <- 2
throws <- rep(0, n)
for (i in 1:m){
dummy <- ceiling(runif(n, 0, 6))
throws <- throws + dummy
}
hist(throws, freq=FALSE, breaks=0:(6*m))
Script:
nes<-read.csv("anes2008.csv")install.packages("car")
library(car)
scatterplot(nes$atheists, nes$richppl)
cor(nes$christians, nes$richppl, use="complete.obs")
cor(nes$atheists, nes$richppl, use="complete.obs")
scatterplot(nes$christians, nes$richppl)
cor(nes$muslims, nes$richppl, use="complete.obs")
scatterplot(nes$muslims, nes$richppl)
scatterplot(nes$atheists, nes$education)
scatterplot(nes$christians, nes$education)
scatterplot(nes$muslims, nes$education)
boxplot(nes$christians)
boxplot(nes$muslims)
boxplot(nes$atheists)
Scatter Plots/ Graphs /Data:
Rich People Correlation- Christians:[1] 0.3101296 Atheists: [1] 0.09013107 Muslims: [1] 0.2158
Summary:
In the data that I have compiled together, I have come across several correlations and relationships that help the investigation in my group of the question "how does religion effect lifestyles/happiness?" I have not found anything core to prove that these people are "happy" however the data I found shows the kind of lifestyle that these people have, leading us to believe that they are happy. However, this data is also in assumption that it was collected from a diverse area, in which none of these religions could be pin-pointed before hand. When running through some scripts I found several correlations between religious views and the amount of money people have. The strongest correlation with mass amounts of money ended up being that of the christian faith with a .31. The next strongest correlation with mass amounts of money was that of the muslim faith with a .21. The weakest of the correlation between mass amounts of money and faith was that of the atheists.. or no faith at all with a .09. Thus proving that people who had a faith compared to people who didn't have a lot more money. This shows a lot about how people's lifestyles differ from believing or not believing in a religion, if we assume that money brings true happiness ( which I personally don't) we can tell that factor as well. The last three scatterplots show all this info in a visual correlation as well as numeric. In the first three graphs above are visuals displaying the types of faith, and how many people belonging to that faith have what level of education. Along with the levels of correlation to money, the same order follows for education Christians having the most, Muslims next, followed by atheists.One can say from this data that having religion is a key part in being "successful" however, this is only a small amount of data and much more research we can come across in order to see who is truly happy and or living a successful lifestyle.
Max, you did a fine job here but you could have been more thorough in analyzing the descriptive statistics, you could have discussed variability and the standard deviations, etc. So this is fine but you did ignore a few little pieces of the exam assignment. Also, I don't mind the summary at the end, but in the future you probably want to narrate the data with separate paragraphs for each analysis/graph. Otherwise, good stuff here.